package com.zy.openchat.core.model.message;

import android.os.Parcel;
import android.os.Parcelable;

public class PinMessage implements Parcelable {

    public long chat_id;

    public long pinned_message_id;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.chat_id);
        dest.writeLong(this.pinned_message_id);
    }

    public void readFromParcel(Parcel source) {
        this.chat_id = source.readLong();
        this.pinned_message_id = source.readLong();
    }

    public PinMessage() {
    }

    protected PinMessage(Parcel in) {
        this.chat_id = in.readLong();
        this.pinned_message_id = in.readLong();
    }

    public static final Creator<PinMessage> CREATOR = new Creator<PinMessage>() {
        @Override
        public PinMessage createFromParcel(Parcel source) {
            return new PinMessage(source);
        }

        @Override
        public PinMessage[] newArray(int size) {
            return new PinMessage[size];
        }
    };
}
